from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

import views
import rpc

application = webapp.WSGIApplication(
                                     [('/', views.ActionPage),
                                      ('/rpc', rpc.RPCHandler),
                                      ('/actions', views.ActionPage),
                                      ('/categorypage', views.CategoryPage),
                                      ('/category', views.CategoryProcessor),
                                      ('/completed', views.CompletedActionPage),
                                      ('/projects', views.ProjectPage),
                                      ('/completedprojects', views.CompletedProjectPage),
                                      ('/projectdetail', views.ProjectDetailPage),
                                      ('/opentasks', views.OpenTaskPage),
                                      ('/sendemail', views.SendEmailPage),
                                      ('/send', views.EmailResultPage),
                                      ('/settings', views.SettingPage),
                                      ('/someday-maybe', views.SomedayMaybePage)],
                                     debug=True)

def main():
  run_wsgi_app(application)

if __name__ == "__main__":
  main()
